package com.feisuanyz.lyweb01.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import java.net.URL;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 用户案例数据传输对象
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
@Data
public class UserCaseDTO {

    /**
     * 案例ID
     */
    @NotNull(groups = { UpdateGroup.class, DeleteGroup.class }, message = "案例ID不能为空")
    @Schema(description = "案例ID")
    private Integer caseId;

    /**
     * 案例标题
     */
    @NotBlank(groups = { CreateGroup.class }, message = "案例标题不能为空")
    @Schema(description = "案例标题")
    private String caseTitle;

    /**
     * 案例描述
     */
    @Schema(description = "案例描述")
    private String caseDescription;

    /**
     * 案例图片URL
     */
    @Schema(description = "案例图片URL")
    private String caseImageUrl;

    /**
     * 创建人
     */
    @NotNull(groups = { CreateGroup.class }, message = "创建人不能为空")
    @Schema(description = "创建人")
    private Integer createBy;

    /**
     * 修改人
     */
    @NotNull(groups = { UpdateGroup.class }, message = "修改人不能为空")
    @Schema(description = "修改人")
    private Integer updateBy;
}
